package com.shxzz.easy12306.services.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 用户注册用户名布隆过滤器配置
 * @author shxzz
 * @create 2024-02-22-0:04
 */
@Data
@ConfigurationProperties(prefix = UserRegisterBloomFilterProperties.PREFIX)
public class UserRegisterBloomFilterProperties {

    public static final String PREFIX = "framework.cache.redis.bloom-filter.user-register";

    /**
     * 布隆过滤器名称
     */
    private String name = "user_register_cache_penetrate_bloom_filter";

    /**
     * 预计插入数量
     */
    private long expectedInsertions = 10_000L;

    /**
     * 错误率
     */
    private double falseProbability = 0.03D;
}
